#ifndef DEFINITIONS_H
#define DEFINITIONS_H

#include <QString>
#include <QApplication>
#include <QDir>


const int VALID_LIMIT		= 1;
const int TRIM_TITLE_LIMIT		= 30;
const int TRIM_MSG_LIMIT			= 60;

const QString APP_PATH_BASE     = QDir::homePath() + QDir::separator() + ".rssguard";
const QString APP_PATH_CONFIG	= "rssguard.ini";
const QString APP_PATH_FEEDS	= "feeds.xml";
const QString APP_ID            = "[rssguard] ";

const int DEF_TIMEOUT = 5000;


const QString CONFIG_UNKNOWN            = "";
const QString CONFIG_WINDOW_STATE       = "windowState";
const QString CONFIG_WINDOW_GEOM        = "windowGeometry";
const QString CONFIG_WINDOW_PLAYLIST    = "windowPlaylist";


const QString FEED_DATE_FORMAT = "yyyy-MMM-dd hh:mm:ss (MMM)";

// QtDBus handling. UNIX only maybe.
#ifdef Q_OS_UNIX
// maybe better check. pkg-config?
#define HAVE_DBUS
#endif

#ifdef HAVE_DBUS
//! \warning keep the string synced with dbusadaptor.h
#define DBUS_SERVICE    "org.rssguard.application"
#define DBUS_PATH       "/RSSGuard"
#define DBUS_INTERFACE  "org.rssguard.application"
#endif

#endif // DEFINITIONS_H
